<?php
$this->pageTitle=Yii::app()->name;
?>
<?php date_default_timezone_set("America/Caracas");?>

<h2>Welcome to <?php echo CHtml::encode(Yii::app()->name); ?></h2>

<?php echo Yii::app()->bootstrap->register();?>

<?php
$this->breadcrumbs=array(
	'Eos'=>array('index'),
	'Manage',
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('eo-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>
   
<?php /* 
$this->beginWidget('zii.widgets.CPortlet', array());
$this->widget('bootstrap.widgets.TbMenu', array(
        'type'=>'pills',
        'items'=>array(
                array('label'=>'Create', 'icon'=>'icon-plus', 'url'=>Yii::app()->controller->createUrl('create'),'active'=>true, 'linkOptions'=>array()),
                array('label'=>'List', 'icon'=>'book', 'url'=>Yii::app()->controller->createUrl('list'), 'linkOptions'=>array()),
                array('label'=>'Admin', 'icon'=>'user', 'url'=>Yii::app()->controller->createUrl('admin'), 'linkOptions'=>array()),
        ),
));
$this->endWidget();
*/?>
<hr/> 

<div>


<?php /*$this->widget('bootstrap.widgets.TbGridView',array(
	'id'=>'eo-grid',
	'dataProvider'=>$model->search(),
	'type'=>'bordered condesed',
        'template'=>'{items}{pager}',
	'columns'=>array(
		
                'nombre',
                'descripcion',
		'numero_eo',
		'monto_usd',
		'tasa',
		'monto_bsf',
                'Customer_id',
		'fecha_deadline',
		
		array(
                        'class'=>'bootstrap.widgets.TbButtonColumn',
			'template' => '{view}{update}{delete}',
			'buttons' => array(
			      'view' => array(
					'label'=> 'View',
					'options'=>array(
						'class'=>'btn btn-small view'
					)
				),	
                              'update' => array(
					'label'=> 'Modificar',
					'options'=>array(
						'class'=>'btn btn-small update'
					)
				),
				'delete' => array(
					'label'=> 'Delete',
					'options'=>array(
						'class'=>'btn btn-small delete'
					)
				)
                            ),
                                'htmlOptions'=>array('style'=>'width: 130px'),
                        ),
	),
)); ?>

<?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button btn')); ?>
<div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array(
	'model'=>$model,
)); */?>
<!-- search-form -->
</div>